-- local plr = owner.Character -- print(" - Your skin changes everytime you run this script - ") -- for i,v in pairs(plr:GetDescendants()) do if v:IsA("BasePart") or v:IsA("Decal") then v.Transparency = 1 end end -- Name local Billboard = Instance.new("BillboardGui",owner.Character.Head) Billboard.Size = UDim2.new(0, 280, 0, 280) Billboard.StudsOffset = Vector3.new(0, 2, 0) local Name = Instance.new("ImageLabel",Billboard) Name.Size = UDim2.new(1, 0, 0.5, 0) Name.Image = "rbxassetid://438825142" Billboard.AlwaysOnTop = true Billboard.MaxDistance = 800 Billboard.LightInfluence = 0 Name.BackgroundTransparency = 1 -- Variables local SpecialMesh = Instance.new("SpecialMesh") SpecialMesh.MeshId = "rbxassetid://433862706" local Random1 = math.random(1,1) if Random1 == 1 then SpecialMesh.TextureId = "rbxassetid://320057843" end SpecialMesh.Scale = Vector3.new(0.013,0.012,0.012) SpecialMesh.Offset = Vector3.new(0,0.5,0) local Part = Instance.new("Part",owner.Character.Torso) Part.Size = Vector3.new(3,3,3) Part.CanCollide = false SpecialMesh.Parent = Part local Weld = Instance.new("Weld",Part) Weld.Part0 = Part Weld.Part1 = owner.Character.Torso Weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(180)) -- Controls if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end local Player,Mouse,mouse,UserInputService,ContextActionService = owner do script.Parent = Player.Character --RemoteEvent for communicating local Event = Instance.new("RemoteEvent") Event.Name = "UserInput_Event" --Fake event to make stuff like Mouse.KeyDown work local function fakeEvent() local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} t.connect = t.Connect return t end --Creating fake input objects with fake variables local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil end} --Merged 2 functions into one by checking amount of arguments CAS.UnbindAction = CAS.BindAction --This function will trigger the events that have been :Connect()'ed local function te(self,ev,...) local t = m[ev] if t and t._fakeEvent and t.Function then t.Function(...) end end m.TrigEvent = te UIS.TrigEvent = te Event.OnServerEvent:Connect(function(plr,io) if plr~=Player then return end if io.isMouse then m.Target = io.Target m.Hit = io.Hit else local b = io.UserInputState == Enum.UserInputState.Begin if io.UserInputType == Enum.UserInputType.MouseButton1 then return m:TrigEvent(b and "Button1Down" or "Button1Up") end for _,t in pairs(CAS.Actions) do for _,k in pairs(t.Keys) do if k==io.KeyCode then t.Function(t.Name,io.UserInputState,io) end end end m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) end end) Event.Parent = NLS([==[ local Player = game:GetService("Players").LocalPlayer local Event = script:WaitForChild("UserInput_Event") local UIS = game:GetService("UserInputService") local input = function(io,a) if a then return end --Since InputObject is a client-side instance, we create and pass table instead Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) end UIS.InputBegan:Connect(input) UIS.InputEnded:Connect(input) local Mouse = Player:GetMouse() local h,t --Give the server mouse data 30 times every second, but only if the values changed --If player is not moving their mouse, client won't fire events while wait(1/30) do if h~=Mouse.Hit or t~=Mouse.Target then h,t=Mouse.Hit,Mouse.Target Event:FireServer({isMouse=true,Target=t,Hit=h}) end end]==],Player.Character) Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS end local debounce = false local db2 = false local hdebounce = false local hdebounce2 = false local db3 = false local db4 = false local Slash = Instance.new("Sound",Part) Slash.SoundId = "http://www.roblox.com/asset/?id=12222208" Slash.Volume = 1 mouse.KeyDown:Connect(function(key) if key == 't' then if not debounce then debounce = true local Ring = Instance.new("Part",workspace) Ring.Size = Vector3.new(1, 0.8, 1) Ring.Transparency = 0 Ring.Position = owner.Character.Head.Position Ring.CanCollide = false local Mesh = Instance.new("SpecialMesh",Ring) Mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" Mesh.Scale = Vector3.new(8,8,8) Ring.BrickColor = BrickColor.White() Slash:Play() local BodyVelocity = Instance.new("BodyVelocity",Ring) BodyVelocity.MaxForce = Vector3.new(math.huge,0,math.huge) BodyVelocity.Velocity = owner.Character.HumanoidRootPart.CFrame.LookVector * 500 Ring.Touched:Connect(function(hit) if hit.Parent ~= owner.Character then if hit.Parent:FindFirstChild("Humanoid") then if not hdebounce then if hit.Parent:FindFirstChild("ForceField") then local Shield = Instance.new("Sound",Part) Shield.Volume = 1 Shield.SoundId = "rbxassetid://6276706377" Shield:Play() hdebounce = true wait(1) Shield:Stop() else local Slash1 = Instance.new("Sound",Ring) Slash1.SoundId = "http://www.roblox.com/asset/?id=11900833" Slash1.Volume = 5 Slash1:Play() hit.Parent.Humanoid.Health -= 40 hdebounce = true wait(1) hdebounce = false end end end return end end) wait(1) debounce = false hdebounce = false end end if key == 'q' then if not db2 then db2 = true local FF = Instance.new("ForceField",owner.Character) local Shield = Instance.new("Sound",Part) FF.Visible = false Shield.Volume = 1 Shield.SoundId = "rbxassetid://6276706377" Shield:Play() wait(0.85) FF:Destroy() Shield:Destroy() wait(1) db2 = false end end if key == 'c' then if not db3 then db3 = true local Hit = Instance.new("Sound",Part) Hit.Volume = 2 Hit.SoundId = "http://www.roblox.com/asset/?id=10730819" Hit:Play() local Part2 = Instance.new("Part",owner.Character.Torso) Part2.Size = Vector3.new(6,6,6) Part2.CanCollide = false Part2.Transparency = 1 local Weld2 = Instance.new("Weld",Part2) Weld2.Part0 = Part2 Weld2.Part1 = owner.Character.Torso Part2.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then if not hdebounce2 then hdebounce2 = true Hit:Play() Hit.Pitch = 0.8 local BodyVelocity = Instance.new("BodyVelocity",Ring) BodyVelocity.MaxForce = Vector3.new(math.huge,0,math.huge) BodyVelocity.Velocity = hit.Parent.Head.CFrame.LookVector * -100 hit.Parent.Humanoid.Health -= 14 wait(0.6) hit.Parent.Humanoid.PlatformStand = true wait(1) Hit.Pitch = 1 hdebounce2 = false hit.Parent.Humanoid.PlatformStand = false BodyVelocity:Destroy() end end end) wait(0.6) Part2:Destroy() wait(4) db3 = false end end if key == 'f' then if not db5 then db5 = true local Hit = Instance.new("Sound",Part) Hit.Volume = 2 Hit.SoundId = "http://www.roblox.com/asset/?id=10730819" Hit:Play() Hit.Pitch = 0.8 owner.Character.Humanoid.JumpPower = 180 owner.Character.Humanoid.Jump = true wait(1) Hit:Destroy() owner.Character.Humanoid.JumpPower = 50 task.wait(6.45) db5 = false end end if key == 'r' then if not db4 then db4 = true local Hit = Instance.new("Sound",Part) Hit.Volume = 2 Hit.SoundId = "http://www.roblox.com/asset/?id=10730819" Hit:Play() local BodyVelocity = Instance.new("BodyVelocity",owner.Character.HumanoidRootPart) BodyVelocity.MaxForce = Vector3.new(math.huge,0,math.huge) BodyVelocity.Velocity = owner.Character.HumanoidRootPart.CFrame.LookVector * 100 local Part3 = Instance.new("Part",owner.Character.Torso) Part3.Size = Vector3.new(6,6,6) Part3.CanCollide = false Part3.Transparency = 1 local Weld3 = Instance.new("Weld",Part3) Weld3.Part0 = Part3 Weld3.Part1 = owner.Character.Torso Part3.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then if not hdebounce4 then hdebounce4 = true Hit:Play() Hit.Pitch = 0.8 local BodyVelocity = Instance.new("BodyVelocity",Ring) BodyVelocity.MaxForce = Vector3.new(math.huge,0,math.huge) BodyVelocity.Velocity = hit.Parent.Head.CFrame.LookVector * -100 hit.Parent.Humanoid.Health -= 30 wait(0.6) hit.Parent.Humanoid.PlatformStand = true wait(2.5) Hit.Pitch = 1 hdebounce4 = false hit.Parent.Humanoid.PlatformStand = false BodyVelocity:Destroy() end end end) wait(0.6) Part3:Destroy() BodyVelocity:Destroy() task.wait(1.1) db4 = false end end end)